package com.foreverwin.mes.production.mapper;


import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.foreverwin.mes.production.model.ClockLog;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author Syngna
 * @since 2019-01-03
 */
@Repository
public interface ClockLogMapper extends BaseMapper<ClockLog> {

    List<ClockLog> findLastEmployeeInResource(@Param("site") String site, @Param("resource") String resource);

    List<ClockLog> selectClockInEmployee(ClockLog clockLog);

    List<ClockLog> selectClockInEmployeeByResource(ClockLog clockLog);
}